package actividad_9;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Actividad_9 {

	public static void main(String[] args) {
		JFrame f = new JFrame();

		f.setSize(500,500);
		f.setTitle("Ejemplo BorderLayout");
		

		JButton n = new JButton("NORTE");
		JButton s = new JButton("SUR");
		JButton e = new JButton("ESTE");
		JButton o = new JButton("OESTE");
		JButton c = new JButton("CENTRO");
		
		f.getContentPane().setLayout(new BorderLayout());
		
		f.getContentPane().add(c,BorderLayout.CENTER);
		f.getContentPane().add(n,BorderLayout.NORTH);
		f.getContentPane().add(s,BorderLayout.SOUTH);
		f.getContentPane().add(o,BorderLayout.WEST);
		f.getContentPane().add(e,BorderLayout.EAST);
		

		f.setVisible(true);
	}

}
